package edu.washington.tcss360.burningpenguins.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import edu.washington.tcss360.burningpenguins.data.PaperCategory;
import edu.washington.tcss360.burningpenguins.data.DataObject;

/**
 * This class Tests PaperCategory.
 * @author Rolando Sierra
 *@version 11/17/2013
 */
public class PaperCategoryTest 
{

	/** A paper category object to use in tests */
	private DataObject my_paper_category;
	
	/** Sets up the data object or tests. */
	@Before
	public void setUp() throws Exception 
	{
		my_paper_category = new PaperCategory();
	}

	/** Test setting and getting ID. */
	@Test
	public void testGetId() 
	{
		my_paper_category.setId(3);
		assertSame("Incorrect Id", my_paper_category.getId(), 3);
	}

	/** Test setting and getting PaperID. */
	@Test
	public void testGetPaperId() 
	{
		((PaperCategory) my_paper_category).setPaperId(2);
		assertSame("Incorrect Id", ((PaperCategory) my_paper_category).getPaperId(), 2);
	}

	/** Test setting and getting CategoryID. */
	@Test
	public void testGetCategoryId() 
	{
		((PaperCategory) my_paper_category).setCategoryId(2);
		assertSame("Incorrect Id", ((PaperCategory) my_paper_category).getCategoryId(), 2);
	}

}
